package com.ruoyi.common.enums;

public enum BusinessCode {

    //用户相关
    NOT_LOGIN(2001,"未登录"),
    NOT_EXIST_USER(2002,"用户不存在"),
    EXIST_USER(2003,"用户已注册"),
    ERROR_LOGIN(2004,"用户账户或者密码错误"),
    ERROR_VERIFICODE(2005,"验证码错误"),
    ERROR_INVICODE(2006,"邀请码错误"),
    ERROR_PASSWORD(2007,"原密码错误"),
    PROHIBIT_USER(2008,"用户已被禁用"),
    //token业务代码
    ACCESS_TOKEN(1001,"过期token"),
    UNIQUE_TOKEN(1002,"无效token"),

    //充值相关
    FAIL_TO_PAY(3001,"支付失败");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    private BusinessCode(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

}
